package com.humngyang.com.hmy.study.mywx.Util;


import java.util.Random;

/**
 * Author : hmy
 *
 * @date 2020/3/20 0:16
 * describution : 生成指定范围的整数
 **/
public class RandomNum {
    public static Integer getRanDomNum(Integer minsize,Integer maxsize) {
        Integer max = maxsize;
        Integer min = minsize;
        Random random = new Random();
        System.out.println(random);
        return random.nextInt(max) % (max - min + 1) + min;
    }
}
